<template>
  <div class="q-pa-md">
    <div class="q-gutter-md" style="max-width: 500px">
      <t-textarea
      v-model="text"
      :borderless="true"
      label="必填"
      labelPosition="top"
      :required='true'
      :rules="[ val => !!val || '必填不能为空']"
    />
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
       const  refInput = ref(null)
      return {
        refInput,
        text: ref(''),

      };
    },
  };
</script>
